package com.endoc.dagger2learn;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.endoc.dagger2learn.data.Dagger2Learn;

import javax.inject.Inject;

public class MainActivity extends AppCompatActivity {
    @Inject
    Dagger2Learn dagger2Learn;
    @Inject
    Dagger2Learn dagger2Learn2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


    }

    public void click(View view) {
        Log.d("MainActivity","code1:"+dagger2Learn.hashCode());
        Log.d("MainActivity","code2:"+dagger2Learn2.hashCode());
    }
}
